<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择喜欢的</title>
</head>

<body>
    <div id="app">
        <span v-for="(item,index) in likeArr"><input type="checkbox" :value="item" v-model="seletcedArr">{{item}}</span>
        <ul>
            <li v-for="item in seletcedArr">{{item}}</li>
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                likeArr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
                seletcedArr: []
            }
        })
    </script>
</body>

</html>